package org.gdufe.comment.feignclient;

import org.gdufe.pojos.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.websocket.server.PathParam;

@FeignClient(value = "book-service")
public interface BookServiceFeignClient {
    @GetMapping("/book/listId")
    public R listId();

    @GetMapping("/book/updatePoint")
    public R updatePoint(@RequestParam("id") Integer id, @RequestParam("point") Double point);
}
